package com.wetsion.securityoauthdemo.server.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * Created by wetsion on 2019/3/3.
 */
@RestController
public class UserController {

    @GetMapping("/user/info")
    public Principal user(Principal principal) {
        System.out.println(principal);
        return principal;
    }
}
